/*
 * @brief: 
 * @Author: TzzzT
 * @Date: 2023-02-09 21:09:41
 * @LastEditTime: 2023-02-12 17:11:19
 * @LastEditors: TzzzT
 */
#pragma once

#include "stdint.h"


typedef uint32_t player_id_t;
typedef int16_t bullet_num_t;
typedef int16_t player_hp_t;
typedef uint8_t player_kill_t;
typedef uint8_t player_death_t;
typedef int16_t player_damage_t;
typedef int16_t player_team_score_t;




typedef struct player_s
{ 
    uint16_t team_id;
    uint16_t room_id;
    uint8_t team;
    uint8_t room;
    player_damage_t damage;
    player_hp_t hp;
    player_id_t id; // 目前用设备的id等于用户的id，也等于玩家的id
    uint8_t kill;
    uint8_t death;
    int16_t team_score;
    bullet_num_t bullet_nums; 
    bool living;  //游戏中状态
    bool is_in_invicible;
    int32_t death_player[5];  //击杀自己的玩家
}player_t;


